package com.budwk.app.sys.commons.task.job;

import cn.hutool.core.date.DateUtil;
import com.budwk.app.sqfw.northstation.controllers.NsTrackrecordController;
import com.budwk.app.sqfw.northstation.service.NsTrackrecordService;
import com.budwk.app.sqfwV2.service.mine.WorkSummaryService;
import com.budwk.starter.job.annotation.SJob;
import lombok.extern.slf4j.Slf4j;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import java.util.Date;

/**
 * @author wizzer@qq.com
 */
@IocBean(name = "taskdeviceinfo",singleton = false)
@Slf4j
public class TaskTrackrecordJob {

    @Inject
    private NsTrackrecordController nsTrackrecordService;

    @SJob("deviceinfo")
    public void deviceinfo(String taskId, String params) {
        log.info("sjob:{} taskId:{} params:{}", DateUtil.format(new Date(), "yyy-MM-dd") + "设备记录", taskId, params);
        nsTrackrecordService.inserttrackrecord();
    }
}